<template>
  <div class="route-require">
    <my-title titleName="路线需求" moreLink="/routeList"></my-title>

    <div class="route-content" v-for="(item, index) in routeRequireList" :key="index">
      <router-link :to="'/routeReqDetail/'+item.id+'/'+item.creator" tag="div">
        <my-route :route="item"></my-route>
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: "route-require",
  data() {
    return {};
  },
  props: ["routeRequireList"]
};
</script>

<style lang="stylus" scoped>
.route-require {
  background-color #fff;
  margin-top: 10px;
  margin-bottom: 0.2rem;

  .route-content {
    padding: 0 0.3rem;
  }
}
</style>